package com.rht.gulimallmember.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

/**
 * 会员登录记录
 * 
 * @author rht
 * @email rht@qq.com
 * @date 2024-11-07 13:57:31
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("ums_member_login_log")
public class MemberLoginLogEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
			@TableId
			private Long id;

	/**
	 * member_id
	 */
			private Long memberId;

	/**
	 * 创建时间
	 */
			   @DateTimeFormat(pattern = "yyyy-MM-dd")
		private Date createTime;

	/**
	 * ip
	 */
			private String ip;

	/**
	 * city
	 */
			private String city;

	/**
	 * 登录类型[1-web，2-app]
	 */
			private Integer loginType;


}
